﻿using Loki.IoC;
using Loki.IoC.Registration;
using Luna.Data.Configuration;

namespace Luna.Data
{
    public class CommonInstaller : LokiContextInstaller
    {
        private const string REFERENCE_DELETE = "reference_delete";
        private const string REFERENCE_INSERT = "reference_insert";
        private const string REFERENCE_UPDATE = "reference_update";

        public override void Install(IObjectContext P_Context)
        {
            P_Context.Register(Element.Entity<IReferenceData, ReferenceData>());

            P_Context.Register(Element.For(typeof(ReferenceDataMapper<>)));
        }
    }
}